<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>代码类型管理</title>
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/icon.css">
<script type="text/javascript" src="../../js/easyui/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../js/easyui/js/jquery.easyui.min.js"></script>


<script type="text/javascript" src="../../js/codeType.js"></script>
</head>
<body>
 <!-- 表格 -->
<table 	id="codeTypeInfoTable"
		title="代码类型一览"  
		border="0"
		cellspacing="0"
		cellpadding="0" 
		iconCls="icon-edit" 
		width="98%" 
		idField="codeTypeId" 
		pagination="true"
		remoteSort="false" 
		singleSelect="false" 
		showFooter="false"
		striped="true" 
		url="../../code/codetype.json">
	<thead>
		<tr align="center">
			<th field="ck" width="20" checkbox="true" width="20"></th>
			<th field="codeTypeId" width="80" >代码类型ID</th>				
			<th field="codeTypeName" width="80">代码类型名称</th>
			<th field="descript" width="80">描述</th>
			<th field="opt" formatter='optFormater' width="150">操作</th>
		</tr>
	</thead>
</table>

<!-- 添加 -->
<div id="codeTypeInfoAdd" icon="icon-save"
	style="padding: 5px; width: 500px; height: 300px;">
	<h5 id="codeTypeInfoAdd_message" style="color: red;"></h5>
	<div class="ToolTip_Form" id="table_codeTypeInfoAdd" onkeydown="if(event.keyCode==13){codeTypeInfoAdd();}">
        <ul>
			<li>
				<label>代码类型名：</label>
				<input type="text" class="easyui-validatebox" id="codeTypeInfoAdd_codeTypeName" maxlength="20" required="true"></input>
			</li>
			<li>
				<label>描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;述：</label>
				<input type="text" class="easyui-validatebox" id="codeTypeInfoAdd_descript" maxlength="20" required="true"></input>
			</li>
			
			<li>
				<a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="codeTypeInfoAdd();">提交</a>
				<a href="#" class="easyui-linkbutton" icon="icon-redo" onclick="codeTypeInfoAddReset();">重置</a>
			</li>
		</ul>
	</div>
</div>

<!-- 编辑 -->
<div id="codeTypeInfoEdit" icon="icon-save"
	style="padding: 5px; width: 500px; height: 300px;">
	<h5 id="codeTypeInfoEdit_message" style="color: red;"></h5>
	<div class="ToolTip_Form" id="table_codeTypeInfoEdit" onkeydown="if(event.keyCode==13){codeTypeInfoEdit();}">
		<input type="hidden" id="codeTypeInfoEdit_codeTypeId"></input>
        <ul>		
			

			<li>
				<label>代码类型名：</label>
				<input type="text" class="easyui-validatebox" id="codeTypeInfoEdit_codeTypeName"  maxlength="40" required="true"></input>
			</li>
			<li>
				<label>描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;述：</label>
				<input type="text" class="easyui-validatebox" id="codeTypeInfoEdit_descript" maxlength="20" required="true"></input>
			</li>
			
			<li>
				<a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="codeTypeInfoEdit();">提交</a>
			</li>
		</ul>
	</div>
</div>

</body>
</html>